/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package Threads;

/**
 *
 * @author Luis_Angel
 */
public class TestOne implements Runnable {

    public static void main(String[] args) throws Exception {
        Thread t = new Thread(new TestOne());
        t.start();
        System.out.print("Started");
        t.join();
        System.out.print("Complete");
    }

    public void run() {
        for (int i = 0; i < 4; i++) {
            System.out.print(i);
        }
    }
}
